<template>
  <div>
    <button @click="eventbus">事件总线</button>
  </div>
</template>

<script>
import eventBus from '@/utils/eventBus'
export default {
  methods: {
    eventbus() {
      eventBus.$emit('changeBus', '1232')
    },
  },
}
</script>

<style scoped></style>
